package Modele;

/**
 * *********************************************************************
 * Module: Velo.java Author: 20cent Purpose: Defines the Class Velo
 **********************************************************************
 */
import java.util.*;

/**
 * @pdOid 8bce6b7a-e9c6-4dcc-889e-e22100b0a3ec
 */
public class Velo extends AbstractModel {

    /**
     * @pdOid 34d3df0d-c1bb-484a-8671-00a632078074
     */
    private int mId;
    /**
     * @pdOid 4e825536-2b6b-49f2-b29c-e45eff89d28e
     */
    private java.util.Date mDateEntree;
    private int mSerial;

    public Velo() {
        super();
    }

    public Velo(int mSerial) {
        super();
        this.mSerial = mSerial;
    }

    
    public Velo(int mId, Date mDateEntree) {
        super();
        this.mId = mId;
        this.mDateEntree = mDateEntree;
    }

    /**
     * @pdOid 42b49047-91d9-4f16-ad74-e06d07b3dd3c
     */
    public int getMId() {
        return mId;
    }

    /**
     * @param newMId
     * @pdOid 44187655-3662-4fd3-8435-1e4ea8cd7ed0
     */
    public void setMId(int newMId) {
        mId = newMId;
    }

    public void setmSerial(int mSerial) {
        this.mSerial = mSerial;
    }

    public int getmSerial() {
        return mSerial;
    }

    /**
     * @pdOid 9fbc9782-d6e0-40fa-9b3a-80f6a1f17a8a
     */
    public java.util.Date getMDateEntree() {
        return mDateEntree;
    }

    /**
     * @param newMDateEntree
     * @pdOid 191cb3eb-fb8a-41d1-8a25-f59afdb56458
     */
    public void setMDateEntree(java.util.Date newMDateEntree) {
        mDateEntree = newMDateEntree;
    }

    @Override
    public boolean equals(Object obj) {
        if(obj instanceof Velo){
            return mId == ((Velo)obj).getMId();
        }else{
            return false;
        }
    }

    @Override
    public String toString() {
        return String.valueOf(mSerial);
    }
    
    
    
}